package org.example.jwtdemo.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.example.jwtdemo.entity.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {

    void add(Category category);

    void delete(List<Integer> ids);

    List<Category> list();



    @Delete("delete from category where id = #{id}")
    void deleteById(Integer id);

    List<Category> selectPage(Category category);
}
